<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TWarnValueset extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_warn_valueset', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('v_id')->nullable(false)->comment('');
			$table->string('v_warnname', 254)->nullable()->default(null)->comment('');
			$table->string('v_warnnameerro', 254)->nullable()->default(null)->comment('');
			$table->float('v_warnvalue', 9, 2)->nullable()->default(null)->comment('');
			$table->float('v_warnvaluetmp', 9, 2)->nullable()->default(null)->comment('');
			$table->integer('v_pid')->nullable()->default(null)->comment('');
			$table->integer('v_did')->nullable()->default(null)->comment('');
			$table->integer('v_jid')->nullable()->default(null)->comment('');
			$table->string('v_identify', 64)->nullable()->default(null)->comment('');
			$table->integer('v_method')->nullable()->default(null)->comment('');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_warn_valueset');
    }
}
